package com.example.graduationdesignbackend.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.example.graduationdesignbackend.dto.UserLoginDto;
import com.example.graduationdesignbackend.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.graduationdesignbackend.query.UserQuery;
import com.example.graduationdesignbackend.res.Res;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuze
 * @since 2024-04-07
 */
public interface IUserService extends IService<User> {
    SaTokenInfo login(UserLoginDto request);

    SaTokenInfo loginpwd(UserLoginDto request);


    void getLoginCode(String phone);

    Res editPassword(User user);
    User getInfo(String id);
    
    Res editInfo(User user);

    Res getPage(UserQuery dto);
}
